package com.zlt.entity;

import com.alipay.api.domain.CompanyInfo;
import com.zlt.annotation.Column;
import com.zlt.annotation.Id;
import com.zlt.annotation.ManyToOne;
import com.zlt.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@Table("offer")
public class Offer {

    @Id
    private Integer oid;

    @Column("send_time")
    private String sendTime;

    @Column
    private Integer state;

    @Column("valid_time")
    private String validTime;

    @ManyToOne
    private Company companyInfo;

    @ManyToOne
    private User user;

    @Column
    private String content;

    @Column
    private String note;

    @Column
    private String url;



}
